<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: QwtCounter Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.1.4</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_qwt_counter.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_qwt_counter-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QwtCounter Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The Counter Widget.  
 <a href="class_qwt_counter.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="qwt__counter_8h_source.html">qwt_counter.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for QwtCounter:</div>
<div class="dyncontent">
<div class="center"><img src="class_qwt_counter__inherit__graph.png" border="0" usemap="#_qwt_counter_inherit__map" alt="Inheritance graph"/></div>
<map name="_qwt_counter_inherit__map" id="_qwt_counter_inherit__map">
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a027cfd91946ca9a19a1d606411e0f374"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374">Button</a> { <a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374a1b29fe43c7d59986eb5854ddaf6f7179">Button1</a>, 
<a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374a6015e556fcb8c4d45126dee5435b478d">Button2</a>, 
<a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374a30b64d40b31283807f1a4f3d57af0e74">Button3</a>, 
<a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374aca8e93a2d129f7cc91f54f5f4da20c5f">ButtonCnt</a>
 }</td></tr>
<tr class="memdesc:a027cfd91946ca9a19a1d606411e0f374"><td class="mdescLeft">&#160;</td><td class="mdescRight">Button index.  <a href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374">More...</a><br /></td></tr>
<tr class="separator:a027cfd91946ca9a19a1d606411e0f374"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr class="memitem:a429a2e986aa46c1231643df5d4c78970"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a429a2e986aa46c1231643df5d4c78970">setValue</a> (double)</td></tr>
<tr class="memdesc:a429a2e986aa46c1231643df5d4c78970"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set a new value without adjusting to the step raster.  <a href="#a429a2e986aa46c1231643df5d4c78970">More...</a><br /></td></tr>
<tr class="separator:a429a2e986aa46c1231643df5d4c78970"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
Signals</h2></td></tr>
<tr class="memitem:a694ed7277e137e44bccc5918b4c15ecc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a694ed7277e137e44bccc5918b4c15ecc">buttonReleased</a> (double <a class="el" href="class_qwt_counter.html#a1881fcb0f81052bd7787523246d19515">value</a>)</td></tr>
<tr class="separator:a694ed7277e137e44bccc5918b4c15ecc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add02928c348417fbfadd7095d058f331"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#add02928c348417fbfadd7095d058f331">valueChanged</a> (double <a class="el" href="class_qwt_counter.html#a1881fcb0f81052bd7787523246d19515">value</a>)</td></tr>
<tr class="separator:add02928c348417fbfadd7095d058f331"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aee94cdbaf1f3d22e110fd3535dbca34a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#aee94cdbaf1f3d22e110fd3535dbca34a">QwtCounter</a> (QWidget *parent=NULL)</td></tr>
<tr class="separator:aee94cdbaf1f3d22e110fd3535dbca34a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6469133eb210b470023a3dcc735aec4d"><td class="memItemLeft" align="right" valign="top"><a id="a6469133eb210b470023a3dcc735aec4d"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a6469133eb210b470023a3dcc735aec4d">~QwtCounter</a> ()</td></tr>
<tr class="memdesc:a6469133eb210b470023a3dcc735aec4d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a6469133eb210b470023a3dcc735aec4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa06625ab417f82fdc82790e3376af708"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#aa06625ab417f82fdc82790e3376af708">setValid</a> (bool)</td></tr>
<tr class="separator:aa06625ab417f82fdc82790e3376af708"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a613e5d3f2111f7263cf540156d9413e9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a613e5d3f2111f7263cf540156d9413e9">isValid</a> () const</td></tr>
<tr class="separator:a613e5d3f2111f7263cf540156d9413e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fc7d115682f295dfcc64fa8312ccdeb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a8fc7d115682f295dfcc64fa8312ccdeb">setWrapping</a> (bool)</td></tr>
<tr class="memdesc:a8fc7d115682f295dfcc64fa8312ccdeb"><td class="mdescLeft">&#160;</td><td class="mdescRight">En/Disable wrapping.  <a href="#a8fc7d115682f295dfcc64fa8312ccdeb">More...</a><br /></td></tr>
<tr class="separator:a8fc7d115682f295dfcc64fa8312ccdeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5cb416959b578a1615e000bc8c40e359"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a5cb416959b578a1615e000bc8c40e359">wrapping</a> () const</td></tr>
<tr class="separator:a5cb416959b578a1615e000bc8c40e359"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59c836008c9c9e2c9c3048cbd5c80778"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a59c836008c9c9e2c9c3048cbd5c80778">isReadOnly</a> () const</td></tr>
<tr class="separator:a59c836008c9c9e2c9c3048cbd5c80778"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad34441cf06c68478b826e5b85fbb3ba7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#ad34441cf06c68478b826e5b85fbb3ba7">setReadOnly</a> (bool)</td></tr>
<tr class="memdesc:ad34441cf06c68478b826e5b85fbb3ba7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow/disallow the user to manually edit the value.  <a href="#ad34441cf06c68478b826e5b85fbb3ba7">More...</a><br /></td></tr>
<tr class="separator:ad34441cf06c68478b826e5b85fbb3ba7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a900729c8f73830b549ea065e5c6dc4f9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a900729c8f73830b549ea065e5c6dc4f9">setNumButtons</a> (int)</td></tr>
<tr class="separator:a900729c8f73830b549ea065e5c6dc4f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7aa5fbf0041f6e1d99c1ceafbc8bb10"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#ab7aa5fbf0041f6e1d99c1ceafbc8bb10">numButtons</a> () const</td></tr>
<tr class="separator:ab7aa5fbf0041f6e1d99c1ceafbc8bb10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac308bb656eaa001641bdef6524d40ce6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#ac308bb656eaa001641bdef6524d40ce6">setIncSteps</a> (<a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374">QwtCounter::Button</a>, int numSteps)</td></tr>
<tr class="separator:ac308bb656eaa001641bdef6524d40ce6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91149ef07b94558456479357d6f98151"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a91149ef07b94558456479357d6f98151">incSteps</a> (<a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374">QwtCounter::Button</a>) const</td></tr>
<tr class="separator:a91149ef07b94558456479357d6f98151"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacbb4750fdd028ef4ad0fba7e874afaf"><td class="memItemLeft" align="right" valign="top"><a id="aacbb4750fdd028ef4ad0fba7e874afaf"></a>
virtual QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#aacbb4750fdd028ef4ad0fba7e874afaf">sizeHint</a> () const</td></tr>
<tr class="memdesc:aacbb4750fdd028ef4ad0fba7e874afaf"><td class="mdescLeft">&#160;</td><td class="mdescRight">A size hint. <br /></td></tr>
<tr class="separator:aacbb4750fdd028ef4ad0fba7e874afaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8dfcf202ef15050184788f24b069c4b7"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a8dfcf202ef15050184788f24b069c4b7">singleStep</a> () const</td></tr>
<tr class="separator:a8dfcf202ef15050184788f24b069c4b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeeb79c9b83b2050baf9d7e6e47f1fa67"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#aeeb79c9b83b2050baf9d7e6e47f1fa67">setSingleStep</a> (double stepSize)</td></tr>
<tr class="memdesc:aeeb79c9b83b2050baf9d7e6e47f1fa67"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the step size of the counter.  <a href="#aeeb79c9b83b2050baf9d7e6e47f1fa67">More...</a><br /></td></tr>
<tr class="separator:aeeb79c9b83b2050baf9d7e6e47f1fa67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad794d0d2589a38113933ae764e87ce22"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#ad794d0d2589a38113933ae764e87ce22">setRange</a> (double min, double max)</td></tr>
<tr class="memdesc:ad794d0d2589a38113933ae764e87ce22"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the minimum and maximum values.  <a href="#ad794d0d2589a38113933ae764e87ce22">More...</a><br /></td></tr>
<tr class="separator:ad794d0d2589a38113933ae764e87ce22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13dcb52e2b6a6ad9ab42f99cc51e677c"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a13dcb52e2b6a6ad9ab42f99cc51e677c">minimum</a> () const</td></tr>
<tr class="separator:a13dcb52e2b6a6ad9ab42f99cc51e677c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f5847dca54ada119623908730568f4d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a4f5847dca54ada119623908730568f4d">setMinimum</a> (double)</td></tr>
<tr class="separator:a4f5847dca54ada119623908730568f4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cedf22e415018876353a17c8a8758b5"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a8cedf22e415018876353a17c8a8758b5">maximum</a> () const</td></tr>
<tr class="separator:a8cedf22e415018876353a17c8a8758b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af097141eaa83c32c7eb7d4234079f95a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#af097141eaa83c32c7eb7d4234079f95a">setMaximum</a> (double)</td></tr>
<tr class="separator:af097141eaa83c32c7eb7d4234079f95a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae56a556a72955b6d10419f2c41779383"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#ae56a556a72955b6d10419f2c41779383">setStepButton1</a> (int nSteps)</td></tr>
<tr class="separator:ae56a556a72955b6d10419f2c41779383"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affdd91a6698ff0c90e24e69ff410924f"><td class="memItemLeft" align="right" valign="top"><a id="affdd91a6698ff0c90e24e69ff410924f"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#affdd91a6698ff0c90e24e69ff410924f">stepButton1</a> () const</td></tr>
<tr class="memdesc:affdd91a6698ff0c90e24e69ff410924f"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the number of increment steps for button 1 <br /></td></tr>
<tr class="separator:affdd91a6698ff0c90e24e69ff410924f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d764a96706593d8c8b51338e92abfcc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a0d764a96706593d8c8b51338e92abfcc">setStepButton2</a> (int nSteps)</td></tr>
<tr class="separator:a0d764a96706593d8c8b51338e92abfcc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acec167b50ae44afe5ff8e9233e77a939"><td class="memItemLeft" align="right" valign="top"><a id="acec167b50ae44afe5ff8e9233e77a939"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#acec167b50ae44afe5ff8e9233e77a939">stepButton2</a> () const</td></tr>
<tr class="memdesc:acec167b50ae44afe5ff8e9233e77a939"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the number of increment steps for button 2 <br /></td></tr>
<tr class="separator:acec167b50ae44afe5ff8e9233e77a939"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b55539578de083793b8310cb8909294"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a8b55539578de083793b8310cb8909294">setStepButton3</a> (int nSteps)</td></tr>
<tr class="separator:a8b55539578de083793b8310cb8909294"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a259de8df2b8928139d1fc4738694eac8"><td class="memItemLeft" align="right" valign="top"><a id="a259de8df2b8928139d1fc4738694eac8"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a259de8df2b8928139d1fc4738694eac8">stepButton3</a> () const</td></tr>
<tr class="memdesc:a259de8df2b8928139d1fc4738694eac8"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the number of increment steps for button 3 <br /></td></tr>
<tr class="separator:a259de8df2b8928139d1fc4738694eac8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1881fcb0f81052bd7787523246d19515"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a1881fcb0f81052bd7787523246d19515">value</a> () const</td></tr>
<tr class="separator:a1881fcb0f81052bd7787523246d19515"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:ad855f1cec9068fd73cce5e2e29fb5771"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#ad855f1cec9068fd73cce5e2e29fb5771">event</a> (QEvent *)</td></tr>
<tr class="separator:ad855f1cec9068fd73cce5e2e29fb5771"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdada1ba1d5873b9c8b3f75d63b4685a"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#acdada1ba1d5873b9c8b3f75d63b4685a">wheelEvent</a> (QWheelEvent *)</td></tr>
<tr class="separator:acdada1ba1d5873b9c8b3f75d63b4685a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafdc19bff96fcafc4b8ed8e3bf7bf07b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#aafdc19bff96fcafc4b8ed8e3bf7bf07b">keyPressEvent</a> (QKeyEvent *)</td></tr>
<tr class="separator:aafdc19bff96fcafc4b8ed8e3bf7bf07b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The Counter Widget. </p>
<p>A Counter consists of a label displaying a number and one ore more (up to three) push buttons on each side of the label which can be used to increment or decrement the counter's value.</p>
<p>A counter has a range from a minimum value to a maximum value and a step size. When the wrapping property is set the counter is circular.</p>
<p>The number of steps by which a button increments or decrements the value can be specified using <a class="el" href="class_qwt_counter.html#ac308bb656eaa001641bdef6524d40ce6">setIncSteps()</a>. The number of buttons can be changed with <a class="el" href="class_qwt_counter.html#a900729c8f73830b549ea065e5c6dc4f9">setNumButtons()</a>.</p>
<p>Example: </p><div class="fragment"><div class="line"><span class="preprocessor">#include &lt;qwt_counter.h&gt;</span></div><div class="line"></div><div class="line"><a class="code" href="class_qwt_counter.html">QwtCounter</a> *counter = <span class="keyword">new</span> <a class="code" href="class_qwt_counter.html#aee94cdbaf1f3d22e110fd3535dbca34a">QwtCounter</a>(parent);</div><div class="line"></div><div class="line">counter-&gt;<a class="code" href="class_qwt_counter.html#ad794d0d2589a38113933ae764e87ce22">setRange</a>(0.0, 100.0);                  <span class="comment">// From 0.0 to 100</span></div><div class="line">counter-&gt;<a class="code" href="class_qwt_counter.html#aeeb79c9b83b2050baf9d7e6e47f1fa67">setSingleStep</a>( 1.0 );                  <span class="comment">// Step size 1.0</span></div><div class="line">counter-&gt;<a class="code" href="class_qwt_counter.html#a900729c8f73830b549ea065e5c6dc4f9">setNumButtons</a>(2);                      <span class="comment">// Two buttons each side</span></div><div class="line">counter-&gt;<a class="code" href="class_qwt_counter.html#ac308bb656eaa001641bdef6524d40ce6">setIncSteps</a>(<a class="code" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374a1b29fe43c7d59986eb5854ddaf6f7179">QwtCounter::Button1</a>, 1);   <span class="comment">// Button 1 increments 1 step</span></div><div class="line">counter-&gt;<a class="code" href="class_qwt_counter.html#ac308bb656eaa001641bdef6524d40ce6">setIncSteps</a>(<a class="code" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374a6015e556fcb8c4d45126dee5435b478d">QwtCounter::Button2</a>, 20);  <span class="comment">// Button 2 increments 20 steps</span></div><div class="line"></div><div class="line">connect(counter, SIGNAL(<a class="code" href="class_qwt_counter.html#add02928c348417fbfadd7095d058f331">valueChanged</a>(<span class="keywordtype">double</span>)), myClass, SLOT(newValue(<span class="keywordtype">double</span>)));</div></div><!-- fragment --> </div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a027cfd91946ca9a19a1d606411e0f374"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a027cfd91946ca9a19a1d606411e0f374">&#9670;&nbsp;</a></span>Button</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374">QwtCounter::Button</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Button index. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a027cfd91946ca9a19a1d606411e0f374a1b29fe43c7d59986eb5854ddaf6f7179"></a>Button1&#160;</td><td class="fielddoc"><p>Button intended for minor steps. </p>
</td></tr>
<tr><td class="fieldname"><a id="a027cfd91946ca9a19a1d606411e0f374a6015e556fcb8c4d45126dee5435b478d"></a>Button2&#160;</td><td class="fielddoc"><p>Button intended for medium steps. </p>
</td></tr>
<tr><td class="fieldname"><a id="a027cfd91946ca9a19a1d606411e0f374a30b64d40b31283807f1a4f3d57af0e74"></a>Button3&#160;</td><td class="fielddoc"><p>Button intended for large steps. </p>
</td></tr>
<tr><td class="fieldname"><a id="a027cfd91946ca9a19a1d606411e0f374aca8e93a2d129f7cc91f54f5f4da20c5f"></a>ButtonCnt&#160;</td><td class="fielddoc"><p>Number of buttons. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aee94cdbaf1f3d22e110fd3535dbca34a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee94cdbaf1f3d22e110fd3535dbca34a">&#9670;&nbsp;</a></span>QwtCounter()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QwtCounter::QwtCounter </td>
          <td>(</td>
          <td class="paramtype">QWidget *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>NULL</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>The counter is initialized with a range is set to [0.0, 1.0] with 0.01 as single step size. The value is invalid.</p>
<p>The default number of buttons is set to 2. The default increments are: </p><ul>
<li>Button 1: 1 step </li>
<li>Button 2: 10 steps </li>
<li>Button 3: 100 steps</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a694ed7277e137e44bccc5918b4c15ecc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a694ed7277e137e44bccc5918b4c15ecc">&#9670;&nbsp;</a></span>buttonReleased</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QwtCounter::buttonReleased </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This signal is emitted when a button has been released </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>The new value </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad855f1cec9068fd73cce5e2e29fb5771"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad855f1cec9068fd73cce5e2e29fb5771">&#9670;&nbsp;</a></span>event()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtCounter::event </td>
          <td>(</td>
          <td class="paramtype">QEvent *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Handle QEvent::PolishRequest events </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td>Event </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>see QWidget::event() </dd></dl>

</div>
</div>
<a id="a91149ef07b94558456479357d6f98151"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91149ef07b94558456479357d6f98151">&#9670;&nbsp;</a></span>incSteps()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QwtCounter::incSteps </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374">QwtCounter::Button</a>&#160;</td>
          <td class="paramname"><em>button</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>The number of steps by which a specified button increments the value or 0 if the button is invalid. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">button</td><td>Button index</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#ac308bb656eaa001641bdef6524d40ce6">setIncSteps()</a> </dd></dl>

</div>
</div>
<a id="a59c836008c9c9e2c9c3048cbd5c80778"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59c836008c9c9e2c9c3048cbd5c80778">&#9670;&nbsp;</a></span>isReadOnly()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtCounter::isReadOnly </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>True, when the line line edit is read only. (default is no) </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#ad34441cf06c68478b826e5b85fbb3ba7" title="Allow/disallow the user to manually edit the value. ">setReadOnly()</a> </dd></dl>

</div>
</div>
<a id="a613e5d3f2111f7263cf540156d9413e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a613e5d3f2111f7263cf540156d9413e9">&#9670;&nbsp;</a></span>isValid()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtCounter::isValid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>True, if the value is valid </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#aa06625ab417f82fdc82790e3376af708">setValid()</a>, <a class="el" href="class_qwt_counter.html#a429a2e986aa46c1231643df5d4c78970" title="Set a new value without adjusting to the step raster. ">setValue()</a> </dd></dl>

</div>
</div>
<a id="aafdc19bff96fcafc4b8ed8e3bf7bf07b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafdc19bff96fcafc4b8ed8e3bf7bf07b">&#9670;&nbsp;</a></span>keyPressEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QwtCounter::keyPressEvent </td>
          <td>(</td>
          <td class="paramtype">QKeyEvent *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Handle key events</p>
<ul>
<li>Ctrl + Qt::Key_Home<br />
 Step to <a class="el" href="class_qwt_counter.html#a13dcb52e2b6a6ad9ab42f99cc51e677c">minimum()</a></li>
<li>Ctrl + Qt::Key_End<br />
 Step to <a class="el" href="class_qwt_counter.html#a8cedf22e415018876353a17c8a8758b5">maximum()</a></li>
<li>Qt::Key_Up<br />
 Increment by incSteps(QwtCounter::Button1)</li>
<li>Qt::Key_Down<br />
 Decrement by incSteps(QwtCounter::Button1)</li>
<li>Qt::Key_PageUp<br />
 Increment by incSteps(QwtCounter::Button2)</li>
<li>Qt::Key_PageDown<br />
 Decrement by incSteps(QwtCounter::Button2)</li>
<li>Shift + Qt::Key_PageUp<br />
 Increment by incSteps(QwtCounter::Button3)</li>
<li>Shift + Qt::Key_PageDown<br />
 Decrement by incSteps(QwtCounter::Button3)</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td>Key event </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8cedf22e415018876353a17c8a8758b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8cedf22e415018876353a17c8a8758b5">&#9670;&nbsp;</a></span>maximum()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double QwtCounter::maximum </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>The maximum of the range </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#ad794d0d2589a38113933ae764e87ce22" title="Set the minimum and maximum values. ">setRange()</a>, <a class="el" href="class_qwt_counter.html#af097141eaa83c32c7eb7d4234079f95a">setMaximum()</a>, <a class="el" href="class_qwt_counter.html#a13dcb52e2b6a6ad9ab42f99cc51e677c">minimum()</a> </dd></dl>

</div>
</div>
<a id="a13dcb52e2b6a6ad9ab42f99cc51e677c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a13dcb52e2b6a6ad9ab42f99cc51e677c">&#9670;&nbsp;</a></span>minimum()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double QwtCounter::minimum </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>The minimum of the range </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#ad794d0d2589a38113933ae764e87ce22" title="Set the minimum and maximum values. ">setRange()</a>, <a class="el" href="class_qwt_counter.html#a4f5847dca54ada119623908730568f4d">setMinimum()</a>, <a class="el" href="class_qwt_counter.html#a8cedf22e415018876353a17c8a8758b5">maximum()</a> </dd></dl>

</div>
</div>
<a id="ab7aa5fbf0041f6e1d99c1ceafbc8bb10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab7aa5fbf0041f6e1d99c1ceafbc8bb10">&#9670;&nbsp;</a></span>numButtons()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QwtCounter::numButtons </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>The number of buttons on each side of the widget. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a900729c8f73830b549ea065e5c6dc4f9">setNumButtons()</a> </dd></dl>

</div>
</div>
<a id="ac308bb656eaa001641bdef6524d40ce6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac308bb656eaa001641bdef6524d40ce6">&#9670;&nbsp;</a></span>setIncSteps()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtCounter::setIncSteps </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374">QwtCounter::Button</a>&#160;</td>
          <td class="paramname"><em>button</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numSteps</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Specify the number of steps by which the value is incremented or decremented when a specified button is pushed.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">button</td><td>Button index </td></tr>
    <tr><td class="paramname">numSteps</td><td>Number of steps</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a91149ef07b94558456479357d6f98151">incSteps()</a> </dd></dl>

</div>
</div>
<a id="af097141eaa83c32c7eb7d4234079f95a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af097141eaa83c32c7eb7d4234079f95a">&#9670;&nbsp;</a></span>setMaximum()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtCounter::setMaximum </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the maximum value of the range</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>Maximum value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#ad794d0d2589a38113933ae764e87ce22" title="Set the minimum and maximum values. ">setRange()</a>, <a class="el" href="class_qwt_counter.html#a4f5847dca54ada119623908730568f4d">setMinimum()</a>, <a class="el" href="class_qwt_counter.html#a8cedf22e415018876353a17c8a8758b5">maximum()</a> </dd></dl>

</div>
</div>
<a id="a4f5847dca54ada119623908730568f4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f5847dca54ada119623908730568f4d">&#9670;&nbsp;</a></span>setMinimum()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtCounter::setMinimum </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the minimum value of the range</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>Minimum value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#ad794d0d2589a38113933ae764e87ce22" title="Set the minimum and maximum values. ">setRange()</a>, <a class="el" href="class_qwt_counter.html#af097141eaa83c32c7eb7d4234079f95a">setMaximum()</a>, <a class="el" href="class_qwt_counter.html#a13dcb52e2b6a6ad9ab42f99cc51e677c">minimum()</a></dd></dl>
<dl class="section note"><dt>Note</dt><dd>The maximum is adjusted if necessary to ensure that the range remains valid. </dd></dl>

</div>
</div>
<a id="a900729c8f73830b549ea065e5c6dc4f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a900729c8f73830b549ea065e5c6dc4f9">&#9670;&nbsp;</a></span>setNumButtons()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtCounter::setNumButtons </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numButtons</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Specify the number of buttons on each side of the label</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">numButtons</td><td>Number of buttons </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#ab7aa5fbf0041f6e1d99c1ceafbc8bb10">numButtons()</a> </dd></dl>

</div>
</div>
<a id="ad794d0d2589a38113933ae764e87ce22"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad794d0d2589a38113933ae764e87ce22">&#9670;&nbsp;</a></span>setRange()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtCounter::setRange </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>max</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the minimum and maximum values. </p>
<p>The maximum is adjusted if necessary to ensure that the range remains valid. The value might be modified to be inside of the range.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">min</td><td>Minimum value </td></tr>
    <tr><td class="paramname">max</td><td>Maximum value</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a13dcb52e2b6a6ad9ab42f99cc51e677c">minimum()</a>, <a class="el" href="class_qwt_counter.html#a8cedf22e415018876353a17c8a8758b5">maximum()</a> </dd></dl>

</div>
</div>
<a id="ad34441cf06c68478b826e5b85fbb3ba7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad34441cf06c68478b826e5b85fbb3ba7">&#9670;&nbsp;</a></span>setReadOnly()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtCounter::setReadOnly </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Allow/disallow the user to manually edit the value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td>True disable editing </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a59c836008c9c9e2c9c3048cbd5c80778">isReadOnly()</a> </dd></dl>

</div>
</div>
<a id="aeeb79c9b83b2050baf9d7e6e47f1fa67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeeb79c9b83b2050baf9d7e6e47f1fa67">&#9670;&nbsp;</a></span>setSingleStep()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtCounter::setSingleStep </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>stepSize</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the step size of the counter. </p>
<p>A value &lt;= 0.0 disables stepping</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stepSize</td><td>Single step size </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a8dfcf202ef15050184788f24b069c4b7">singleStep()</a> </dd></dl>

</div>
</div>
<a id="ae56a556a72955b6d10419f2c41779383"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae56a556a72955b6d10419f2c41779383">&#9670;&nbsp;</a></span>setStepButton1()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtCounter::setStepButton1 </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nSteps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the number of increment steps for button 1 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">nSteps</td><td>Number of steps </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0d764a96706593d8c8b51338e92abfcc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d764a96706593d8c8b51338e92abfcc">&#9670;&nbsp;</a></span>setStepButton2()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtCounter::setStepButton2 </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nSteps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the number of increment steps for button 2 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">nSteps</td><td>Number of steps </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8b55539578de083793b8310cb8909294"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b55539578de083793b8310cb8909294">&#9670;&nbsp;</a></span>setStepButton3()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtCounter::setStepButton3 </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nSteps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the number of increment steps for button 3 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">nSteps</td><td>Number of steps </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa06625ab417f82fdc82790e3376af708"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa06625ab417f82fdc82790e3376af708">&#9670;&nbsp;</a></span>setValid()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtCounter::setValid </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the counter to be in valid/invalid state</p>
<p>When the counter is set to invalid, no numbers are displayed and the buttons are disabled.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td>If true the counter will be set as valid</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a429a2e986aa46c1231643df5d4c78970" title="Set a new value without adjusting to the step raster. ">setValue()</a>, <a class="el" href="class_qwt_counter.html#a613e5d3f2111f7263cf540156d9413e9">isValid()</a> </dd></dl>

</div>
</div>
<a id="a429a2e986aa46c1231643df5d4c78970"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a429a2e986aa46c1231643df5d4c78970">&#9670;&nbsp;</a></span>setValue</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QwtCounter::setValue </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set a new value without adjusting to the step raster. </p>
<p>The state of the counter is set to be valid.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>New value</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a613e5d3f2111f7263cf540156d9413e9">isValid()</a>, <a class="el" href="class_qwt_counter.html#a1881fcb0f81052bd7787523246d19515">value()</a>, <a class="el" href="class_qwt_counter.html#add02928c348417fbfadd7095d058f331">valueChanged()</a> </dd></dl>
<dl class="section warning"><dt>Warning</dt><dd>The value is clipped when it lies outside the range. </dd></dl>

</div>
</div>
<a id="a8fc7d115682f295dfcc64fa8312ccdeb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8fc7d115682f295dfcc64fa8312ccdeb">&#9670;&nbsp;</a></span>setWrapping()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtCounter::setWrapping </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>En/Disable wrapping. </p>
<p>If wrapping is true stepping up from <a class="el" href="class_qwt_counter.html#a8cedf22e415018876353a17c8a8758b5">maximum()</a> value will take you to the <a class="el" href="class_qwt_counter.html#a13dcb52e2b6a6ad9ab42f99cc51e677c">minimum()</a> value and vice versa.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td>En/Disable wrapping </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a5cb416959b578a1615e000bc8c40e359">wrapping()</a> </dd></dl>

</div>
</div>
<a id="a8dfcf202ef15050184788f24b069c4b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8dfcf202ef15050184788f24b069c4b7">&#9670;&nbsp;</a></span>singleStep()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double QwtCounter::singleStep </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Single step size </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#aeeb79c9b83b2050baf9d7e6e47f1fa67" title="Set the step size of the counter. ">setSingleStep()</a> </dd></dl>

</div>
</div>
<a id="a1881fcb0f81052bd7787523246d19515"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1881fcb0f81052bd7787523246d19515">&#9670;&nbsp;</a></span>value()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double QwtCounter::value </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Current value of the counter </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a429a2e986aa46c1231643df5d4c78970" title="Set a new value without adjusting to the step raster. ">setValue()</a>, <a class="el" href="class_qwt_counter.html#add02928c348417fbfadd7095d058f331">valueChanged()</a> </dd></dl>

</div>
</div>
<a id="add02928c348417fbfadd7095d058f331"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add02928c348417fbfadd7095d058f331">&#9670;&nbsp;</a></span>valueChanged</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QwtCounter::valueChanged </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This signal is emitted when the counter's value has changed </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>The new value </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="acdada1ba1d5873b9c8b3f75d63b4685a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acdada1ba1d5873b9c8b3f75d63b4685a">&#9670;&nbsp;</a></span>wheelEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QwtCounter::wheelEvent </td>
          <td>(</td>
          <td class="paramtype">QWheelEvent *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Handle wheel events </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td>Wheel event </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5cb416959b578a1615e000bc8c40e359"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5cb416959b578a1615e000bc8c40e359">&#9670;&nbsp;</a></span>wrapping()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtCounter::wrapping </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>True, when wrapping is set </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a8fc7d115682f295dfcc64fa8312ccdeb" title="En/Disable wrapping. ">setWrapping()</a> </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_qwt_counter.html">QwtCounter</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
